package com.audaque.springboot.foshanupload.web.mbdemo.crud.mapper;

import java.util.List;

import com.audaque.springboot.foshanupload.web.mbdemo.crud.domain.User;
import com.audaque.springboot.foshanupload.web.mbdemo.crud.query.UserQueryObject;
import org.apache.ibatis.annotations.Param;


public interface UserXmlMapper extends ObjectMapper<User>{
	public Long queryByConditionCount(UserQueryObject qo);
	public List<User> queryByCondition(UserQueryObject qo);
	/**
	在mybatis中底层方法调用的时候只允许传入一个参数,如果需要在接口方法中传入多个参数,需要使用@param注解.
	使用@Param注解,在实际调用方法前,会把所有带@Param注解的参数封装到Map中,然后再把这个map作为参数传递给底层调用

	 * */
	public User login(@Param("username")String username, @Param("password")String password);
}
